# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=laf
pkgver=12.7a456b3
pkgrel=5
groups=('blackarch' 'blackarch-scanner' 'blackarch-webapp')
pkgdesc='Login Area Finder: scans host/s for login panels.'
arch=('any')
url='https://github.com/takeshixx/laf'
license=('custom:unknown')
depends=('python2' 'python2-requests')
makedepends=('git')
source=("git+https://github.com/takeshixx/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

